home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Demos / ByCompany / TipTop_Software / TipTop / Supplement / man / Makefile < prev    next >
Makefile  |  1994-05-08  |  1KB  |  36 lines

  1. #!/bin/sh
  2.  
  3. help:
  4.     @echo " "
  5.     @echo "This directory contains tcl, expect, term, ncftp, and sz/rz man pages."
  6.     @echo "Type one of the following:"
  7.     @echo " "
  8.     @echo "  make ps    to generate PostScript files from the man pages"
  9.     @echo "  make clean    to remove the PostScript files"
  10.     @echo "  make install    to install the man pages (into /usr/local/man)"
  11.     @echo "  make print    to print all the PostScript files (~140 pages)"
  12.     @echo " "
  13.  
  14. ps:
  15.     @echo ==============================
  16.     @echo Generating PostScript files...
  17.     @echo ==============================
  18.     ptroff -man -t expect/expect.1 >expect.ps
  19.     (cd tcl; ptroff -man -t tcl-all.man >../tcl.ps)
  20.     for f in term_setup term term_clients ncftp; do \
  21.       ptroff -man -t term/$$f.1 >$$f.ps; done
  22.     ptroff -man -t zmodem/sz.1 >sz.ps
  23.     ptroff -man -t zmodem/rz.1 >rz.ps
  24.  
  25. MANDIR=/usr/local/man
  26. install:
  27.     mkdirs $(MANDIR)/man1; cp */*.1 $(MANDIR)/man1/
  28.     mkdirs $(MANDIR)/mann; cp */*.n $(MANDIR)/mann/
  29.  
  30. print: ps
  31.     @echo "Printing ... approx 140 pages..."
  32.     lpr *.ps
  33.  
  34. clean:
  35.     -/bin/rm *.ps
  36.